<?php 
namespace User\Model;
use Think\Model;

   
class UserModel extends Model{
   protected $_validate = array(
     array('user_tel','/^1[3|4|5|7|8][0-9]\d{8}$/','手机号码错误.','0','regex',1),
     array('user_tel2','user_tel','2次手机号码不一致.',0,'confirm'), 
     array('password','require','密码必须填写！'),
     array('user_tel','','手机号码已经存在.',0,'unique',1),
     );
 
   }
?>